<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>登录页面</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            /* 淡紫色系背景渐变 */
            background: linear-gradient(to bottom, #F2E6FF, #E6D9FF);
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            margin: 0;
            padding: 0;
        }

        form {
            background-color: white;
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            width: 350px;
            /* 表单添加淡紫色系的背景渐变，增强层次感 */
            background: linear-gradient(to bottom, #F0E6FF, #E6D9FF);
        }

        h2 {
            text-align: center;
            margin-bottom: 25px;
            color: #8A2BE2;
        }

        label {
            display: block;
            margin-bottom: 8px;
            font-weight: bold;
            color: #333;
        }

        input[type="text"],
        input[type="password"] {
            width: 100%;
            padding: 10px;
            margin-bottom: 20px;
            border: 1px solid #ccc;
            border-radius: 4px;
        }

        input[type="submit"] {
            background-color: #8A2BE2;
            color: white;
            border: none;
            padding: 12px 25px;
            border-radius: 4px;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }

        input[type="submit"]:hover {
            background-color: #6A1F94;
        }
    </style>
</head>

<body>
    <form method="post" action="/login">
        <h2>用户登录</h2>
        <label for="username">用户名</label>
        <input type="text" id="username" name="username" placeholder="请输入用户名" />
        <label for="password">密码</label>
        <input type="password" id="password" name="password" placeholder="请输入密码" />
        <input type="submit" value="登录" />
    </form>
</body>

</html>